import Home from '../components2/Home'
import Detail from '../components2/Detail'
import Login from '../components2/Login'

// 二级路由
import Homes from '../components2/home/Homes'
import Referrer from '../components2/home/Referrer'
import App from '../components2/home/App'
import My from '../components2/home/My'

export default [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: "/login",
        com: Login
    },
    {
        path: "/home",
        com: Home,
        children: [
            {
                path: "/home",
                redirect: "/home/homes"
            },
            {
                path: "/home/homes",
                com: Homes
            },
            {
                path: "/home/referrer",
                com: Referrer,
                auth: true
            },
            {
                path: "/home/app",
                com: App
            },
            {
                path: "/home/my",
                com: My,
                // 添加拦截
                // auth: true
            }
        ]
    },
    {
        path: "/detail",
        com: Detail
    }
]